package com.qf.feign.api;

import com.qf.vo.GoodsStockInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "shop-stock",path = "/stockController")
public interface StockService {

    @RequestMapping("/lockGoodsStock")
    public Boolean lockGoodsStock(@RequestBody List<GoodsStockInfo> list);

    @RequestMapping("/unlockGoodsStock/{oid}")
    public Boolean unlockGoodsStock(@PathVariable String oid);
}